# Enter the function code here
summon minecraft:armor_stand ~ ~ ~ {Tags:[Location]}
execute store result score x location run data get entity @e
[tag=Location,limit=1,sort=nearest] Pos[0] 1
execute store result score y location run data get entity @e
[tag=Location,limit=1,sort=nearest] Pos[1] 1
execute store result score z location run data get entity @e
[tag=Location,limit=1,sort=nearest] Pos[2] 1
tellraw @a[tag=user] [{"text":"绑定成功！\nX:"},{"score":
{"name":"x","objective":"location"}},{"text":"\ny:"},{"score":
{"name":"y","objective":"location"}},{"text":"\nZ:"},{"score":
{"name":"z","objective":"location"}}]
kill @e[tag=Location]
tag @a remove user

